package com.echo.im.domain.user.manager;

import com.echo.im.repository.dao.entity.User;
import com.echo.im.repository.dao.mapper.UserMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author: echo
 * @time: 2024-08-17
 */
@Component
@RequiredArgsConstructor
public class UserManager {


    private final UserMapper userMapper;


    public User getById(Long friendId) {
        return userMapper.selectById(friendId);
    }
}
